package com.meedoll.manager.std.client.mainpanel.dialog;

import com.smartgwt.client.data.Record;
import com.smartgwt.client.widgets.Dialog;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.smartgwt.client.widgets.layout.VLayout;
import com.smartgwt.client.widgets.ImgButton;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.viewer.DetailViewer;

public class YeWuLvLvDialog extends Dialog {

	public YeWuLvLvDialog() {
		setTitle("New dialog");
		resizeTo(350, 200);
		
		VLayout layout = new VLayout();
		layout.setHeight("100%");
		
		Canvas canvas = new Canvas();
		canvas.setHeight("46px");
		
		ImgButton imgButton = new ImgButton();
		canvas.addChild(imgButton);
		imgButton.setRect(6, 10, 50, 30);
		
		ImgButton imgButton_1 = new ImgButton();
		canvas.addChild(imgButton_1);
		imgButton_1.setRect(383, 10, 50, 30);
		layout.addMember(canvas);
		
		Canvas canvas_1 = new Canvas();
		canvas_1.setHeight("100%");
		
		DetailViewer detailViewer = new DetailViewer();
		canvas_1.addChild(detailViewer);
		detailViewer.setRect(86, 84, 283, 143);
		layout.addMember(canvas_1);
		addItem(layout);
		Record r = new Record();
		r.setAttribute("aa", "bb");
		detailViewer.setData(new Record[]{r});
	}
}
